package schema

import (
	"entgo.io/ent"
	"entgo.io/ent/dialect"
	"entgo.io/ent/schema/field"
	"entgo.io/ent/schema/mixin"
)

type OperationPerson struct {
	mixin.Schema
}

func (OperationPerson) Fields() []ent.Field {
	return []ent.Field{
		field.String("create_by").SchemaType(map[string]string{
			dialect.MySQL: "varchar(32)",
		}).Default("").Comment("创建人"),

		field.String("update_by").SchemaType(map[string]string{
			dialect.MySQL: "varchar(32)",
		}).Default("").Comment("更新人"),
	}
}
